from selenium import webdriver
# from selenium.webdriver.chrome.service import service
from selenium.webdriver.chrome.options import Options
import time


def http_time():
    client.get("https://spa1.scrape.center/")
    time.sleep(5)
    html = client.page_source
    print(html)
    with open("home.html", "w", encoding='utf-8') as f:
        f.write(html)
    return


if __name__ == "__main__":
    client = webdriver.Chrome()
    http_time()
    client.quit()
